﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace MatchCounter.Rest
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMatchRestService" in both code and config file together.
    [ServiceContract]
    public interface IMatchRestService
    {

        [OperationContract]
        [WebInvoke(Method = "GET",
          UriTemplate = "string/{text}/{pattern}")]
        int GetMatches(string text, string pattern);
    }
}
